<!DOCTYPE html>
<html>
 <head> 
  <meta charset="UTF-8" /> 
  <meta name="renderer" content="webkit" /> 
  <meta http-equiv="X-UA-Compatible" content="IE=edge" /> 
  <title>关于我们</title> 
  <link href="css/main.css" rel="stylesheet" type="text/css" /> 
  <link href="css/common.css" rel="stylesheet" type="text/css" /> 
 </head> 
 <body> 
  <!--栏目列表-->
  <div class="left_menu">
    <div class="sub">
      </div>
  </div>
  <!--/栏目列表-->
  <div class="right_con"> 
   <div class="card"> 
    <div class="title">
     <span>关于我们</span> 
     <div class="cfr"> 
      <div class="tico full">
       <i class="iconfont icon-quanping"></i>
      </div> 
     </div> 
    </div> 
    <div class="tipbox"> 
    </div> 
    <div class="infoBox">
      <div class="boxs">
        <!--基本信息-->
        <div class="box">
          <div class="form ifo1 validform">
            <div class="row" gutter="10">
              <div class="col-7">
                <textarea class="txa required"  placeholder="请输入信息" data-tip="请输入信息" data-valid="isNonEmpty" data-error="信息不能为空">以后用ueditor</textarea>
              </div>
            </div>
          </div>
        </div>
        
         <div class="box">
          <div class="form ifo1 validform">
          	<input type="button" id="like" value="连接" />
          	
            <input type="button" class = "caozuo" id="up" value="上" />
            <input type="button" class = "caozuo" id="down" value="下" />
            <input type="button" class = "caozuo" id="left" value="左" />
            <input type="button" class = "caozuo" id="right" value="右" />
            <input type="button" class = "caozuo" id="doll" value="抓取" />
            <input type="button" class = "caozuo" id="stop" value="停止" />
            <input type="button" class = "caozuo" id="get" value="获取结果" />
            <input type="button" id="close" value="关闭" />
          </div>
        </div>
        
      </div>
      <div class="btnBox">
        <div class="fr">
          <button class="btn red " id="save-btn">保存</button>
          <button class="btn">取消</button>
        </div>
      </div>
    </div>
   </div> 
  </div>  
  <script id="jquery_js" src="js/jquery-1.11.1.min.js"></script> 
  <script id="config_js" src="js/config.js"></script> 
  <script id="scroll" src="js/jquery.nicescroll/jquery.nicescroll.min.js"></script> 
  <script id="ly_main_js" src="js/ly_main.js"></script> 
  <script src="js/common.js"></script> 
 </body>
</html>
<script>
	$(function(){
		$("#like").on("click",function(){
			var url = "http://192.168.1.190:8081/machineOperating/startGrabDoll"
			var obj={'mcId':'401e2564654111e8b53d061565786960'};
			request({
				url:url,
				data:obj,
				type:"POST",
				//ajaxform:'true',
				callback:function(f) {
				}
			});	
		});
		
	});
	
	$(function(){
		$(".caozuo").on("click",function(){
			var u = "http://192.168.1.190:8081/machineOperating/dollMachineOperation"
			var d = $(this).attr("id");
			var operatingType = '';
			if(d == 'up'){
				operatingType = '1';
			}else if(d == 'down'){
				operatingType = '2';
			}else if(d == 'left'){
				operatingType = '3';
			}else if(d == 'right'){
				operatingType = '4';
			}else if(d == 'doll'){
				operatingType = '5';
			}else if(d =='stop'){
				operatingType='8';
			}else if(d=='get'){
				operatingType='9';
			}
			request({
				url:u,
				data:{'operatingType':operatingType},
				type:"post",
				//ajaxform:'true',
				callback:function(f) {
					
				}
			});	
		});
		
		
		$("#close").on("click",function(){
			var u = "http://192.168.1.190:8081/machineOperating/closeMachineOperation";
			request({
				url:u,
				data:{},
				type:"post",
				//ajaxform:'true',
				callback:function(f) {
					
				}
			});	
		})
	});
	
</script>